<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../header.inc"%>
    <title>修改医生</title>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
</head>
<body>
<form action="/hospital/doctor/edit" method="post" class="definewidth m20">
<input type="hidden" name="id" value="${doctor.id}"/>
<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">姓名</td>
        <td><input type="text" name="name" value="${doctor.name}"/></td>
    </tr>
    
    <tr>
        <td width="10%" class="tableleft">身份证号</td>
        <td><input type="text" name="idNum" value="${doctor.idNum}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">手机</td>
        <td><input type="text" name="phone" value="${doctor.phone}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">性别</td>
        <td>
        	<input type="radio" name="sex" ${doctor.sex?'checked':''} value="true" />男&nbsp;&nbsp;&nbsp;
        	<input type="radio" name="sex" ${!doctor.sex?'checked':''} value="false" />女
        </td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">出生年月</td>
        <td><input type="text" name="birthday" class="Wdate"
                   onclick="WdatePicker({el:this,dateFmt:'yyyy-MM'})"
                   value="${doctor.birthday}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">年龄</td>
        <td><input type="text" name="age" value="${doctor.age}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">电子邮箱</td>
        <td><input type="text" name="email" value="${doctor.email}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">所属科室</td>
        <td>
            <select  name="department">
                <option value="急诊科" ${doctor.department eq '急诊科'?'selected':''}>急诊科</option>
                <option value="儿科" ${doctor.department eq '儿科'?'selected':''}>儿科</option>
                <option value="妇科" ${doctor.department eq '妇科'?'selected':''}>妇科</option>
                <option value="皮肤科" ${doctor.department eq '皮肤科'?'selected':''}>皮肤科</option>
                <option value="内分泌科" ${doctor.department eq '内分泌科'?'selected':''}>内分泌科</option>
                <option value="牙科" ${doctor.department eq '牙科'?'selected':''}>牙科</option>
            </select>
        </td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">学历</td>
        <td>
            <select name="education">
                <option value="专科"  ${doctor.education eq '专科'?'selected':''}>专科</option>
                <option value="本科"  ${doctor.education eq '本科'?'selected':''}>本科</option>
                <option value="研究生"  ${doctor.education eq '研究生'?'selected':''}>研究生</option>
                <option value="博士"  ${doctor.education eq '博士'?'selected':''}>博士</option>
            </select>
        </td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">备注</td>
        <td><textarea name="remark" >${doctor.remark}</textarea></td>
    </tr>
    <tr>
        <td colspan="2">
			<center>
				<input name="save"  type="submit" class="btn btn-primary" value="保存"/> &nbsp;&nbsp;
				<button onclick="window.location.href='/hospital/doctor'" type="button" class="btn btn-success" name="backid">返回列表</button>
			</center>
		</td>
    </tr>
</table>
</form>
</body>
</html>